package pojo;

public class Worth {
	private int id;
	private String date;
	private double price;
	private int code;
	
	public Worth() {}
	
	public Worth(String date, double price, int code) {
		this.id = 0;
		this.date = date;
		this.price = price;
		this.code = code;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return "Worth [id=" + id + ", String=" + date + ", price=" + price + ", code=" + code + "]";
	}
	
}
